package cribbage.data;

import com.threerings.parlor.card.client.CardPanel;
import com.threerings.parlor.card.client.CardSprite;
import com.threerings.parlor.card.client.CardPanel.CardSpritePredicate;

public class CribPredicate implements CardSpritePredicate {
   CardPanel panel;
   
   public CribPredicate(CardPanel p) {
      panel = p;
   }
   public boolean evaluate (CardSprite arg0) {
      if(panel.getSelectedHandSprites().length < 2)
         return true;
      return false;
   }

}
